package com.withouther.robot.rainingrobot.core.constants;

import java.io.Serializable;

/**
 * @ClassName RoleType
 * @Auther: tzq
 * @Date: 2020/6/12 09:34
 * @Description:
 */
public class RoleType implements Serializable {

    /**
     * 坐席
     */
    public static final int SERVICE = 1;

    /**
     * 客户
     */
    public static final int CLIENT = 2;


    /**
     * 获取角色名称
     * @param index
     * @return
     */
    public static String getRoleTypeName(int index) {
        switch (index) {
            case SERVICE :
                return "客服";
            case CLIENT :
                return "客户";
            default:
                return "客服";
        }
    }
}
